package exceptions;
import be.kuleuven.cs.som.annotate.Basic;

/**
 * A class for signaling illegal values for the temperature attribute.
 * @author Maarten
 *
 */
public class IllegalTemperatureException extends RuntimeException {

	
	/**
	 * Initialize this new illegal temperature exception with given value.
	 * 
	 * @param   value
	 *          The value for this new illegal temperature exception.
	 * @post    The value of this new illegal temperature exception is equal
	 *          to the given value.
	 *        | new.getValue() == value
	 */
	public IllegalTemperatureException(int value) {
		this.value = value;
	}
	/**
	 * Variable registering the value involved in this illegal temperature
	 * exception.
	 */
	private final int value;
	/**
	 * Return the value registered for this illegal temperature exception.
	 */
	@Basic
	public long getValue() {
		return this.value;
	}
	private static final long serialVersionUID = 1L;
	
}
